<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.css">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.js"></script>
</head>
<body class="body">
	<jsp:include page="include/head.jsp">
		<jsp:param value="${ep}" name="ep"/>
	</jsp:include>
	
	<div class="container">
	  <div class="row">
		<div class="span9">
		<form class="form-horizontal" action="gogal.jspx" method="post">
	        <fieldset>
	          <legend>编辑任务</legend>
	          <input type="hidden" name="_m" value="editTask">
	          <input type="hidden" name="taskId" value="${task.id}">
	          <div class="control-group">
	            <label class="control-label" for="input01">任务名称</label>
	            <div class="controls">
	              <input type="text" class="span5" id="input01"  value="${task.name}" name="name">
	              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="input01">开始时间</label>
	            <div class="controls">
	              <input type="text" class="span5" id="input01"  value="${task.begintime}" name="begintime">
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="input01">截止时间</label>
	            <div class="controls">
	              <input type="text" class="span5" id="input01"  value="${task.endtime}" name="endtime">
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="input01">任务描述</label>
	            <div class="controls">
	              <textarea class="span5" rows="8" name="desc">${task.desc}</textarea>
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="multiSelect">状态</label>
	            <div class="controls">
	              <select id="multiSelect" name="state">
	                <option value="新任务">新任务</option>
	                <option value="进行中">进行中</option>
	                <option value="已完成">已完成</option>
	              </select>
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="multiSelect">级别</label>
	            <div class="controls">
	              <select id="multiSelect" name="level">
	                <option value="1">重要紧急</option>
	                <option value="2">重要不紧急</option>
	                <option value="3">紧急不重要</option>
	                <option value="4">不紧急不重要</option>
	              </select>
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="multiSelect">负责人</label>
	            <div class="controls">
	              <select id="multiSelect" name="employeeId">
		                <c:forEach var="e" items="${employeeList}">
			                <option value="${e.id}">${e.username}</option>
		                </c:forEach>
		          </select>
	            </div>
	          </div>
	          <div class="control-group">
	            <label class="control-label" for="input01">当前进度</label>
	            <div class="controls">
	              <input type="text" class="span5" id="input01"  name="rate" value="${task.rate}">
	            </div>
	          </div>
	          
	          <div class="form-actions">
	            <button type="submit" class="btn btn-primary">保存</button>
	            <button class="btn" onclick="location.back()">返回</button>
	          </div>
	        </fieldset>
     	 </form>          
          	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>

</body></html>
